import request from '@/utils/request'

// 查询就业管理列表
export function listStudentemployment(query) {
  return request({
    url: '/studentemployment/studentemployment/list',
    method: 'get',
    params: query
  })
}

// 查询就业管理详细
export function getStudentemployment(sid) {
  return request({
    url: '/studentemployment/studentemployment/' + sid,
    method: 'get'
  })
}
// 查询所有就业人数
export function getStatCount() {
  return request({
    url: '/studentemployment/studentemployment/getStatCount',
    method: 'get'
  })
}
// 分组查询就业人数
export function getGroupStat() {
  return request({
    url: '/studentemployment/studentemployment/getGroupStat',
    method: 'get'
  })
}
// 查询不同专业的平均薪资
export function getStudentemploymentSpecilityMoney() {
  return request({
    url: '/studentemployment/studentemployment/getStudentemploymentSpecilityMoney',
    method: 'get'
  })
}
// 查询不同专业男女人数
export function getStudentemploymentSpecilitySex() {
  return request({
    url: '/studentemployment/studentemployment/getStudentemploymentSpecilitySex',
    method: 'get'
  })
}

// 查询所有毕业人数
export function getOutTimeCount() {
  return request({
    url: '/studentemployment/studentemployment/getOutTimeCount',
    method: 'get'
  })
}

// 新增就业管理
export function addStudentemployment(data) {
  return request({
    url: '/studentemployment/studentemployment',
    method: 'post',
    data: data
  })
}

// 修改就业管理
export function updateStudentemployment(data) {
  return request({
    url: '/studentemployment/studentemployment',
    method: 'put',
    data: data
  })
}

// 删除就业管理
export function delStudentemployment(sid) {
  return request({
    url: '/studentemployment/studentemployment/' + sid,
    method: 'delete'
  })
}
